<template>
  <section class="pointsRule">
    <ul id="list">
      <li
        style="z-index: 5"
        :class="{ select: active > 0 }"
      >
        <b><span>1.创建基本信息</span><i></i></b>
      </li>
      <li
        style="z-index: 4"
        :class="{ select: active > 1 }"
      >
        <b><em class="before"></em><span>2.创造服务节点</span><i></i></b>
      </li>
    </ul>
  </section>
</template>

<script>
import { reactive, ref, onMounted, defineComponent } from "vue";
export default defineComponent({
  props: ["active"],
  setup() {},
});
</script>

<style lang="scss" scoped>
.pointsRule ul {
  overflow: hidden;
}
.pointsRule ul li.select {
  background-color: #2e69eb;
  color: rgb(255, 255, 255);
  i {
    background-color: #2e69eb;
    border: none;
  }
}
.pointsRule ul li {
  display: list-item;
  text-align: center;
  float: left;
  margin: 10px 5px 0;
  background: #e3e3e3;
  border-top: 1px solid #e3e3e3;
  height: 45px;
  position: relative;
  width: 47%;
}
// .pointsRule ul li:first-child { border-left: 1px solid #e3e3e3; background: #e3e3e3; }
.pointsRule ul li b {
  display: block;
  padding: 8px 0;
  font-weight: normal;
}
.pointsRule ul li span {
  vertical-align: middle;
  height: 24px;
  line-height: 25px;
  display: inline-block;
  overflow: hidden;
  text-align: center;
  margin: 0 20px;
}
.pointsRule ul li i {
  float: right;
  border: #e3e3e3 solid;
  border-width: 1px 1px 0 0;
  width: 32px;
  height: 32px;
  margin: -2px -17px 0px 10px;
  top: 2px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  background: url("") #e3e3e3;
  -moz-transform: rotate(45deg); /* Firefox浏览器 */
  -ms-transform: rotate(45deg);
}
.pointsRule ul li em.before {
  border: #e3e3e3 solid;
  border-width: 1px 1px 0 0;
  width: 32px;
  height: 32px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  float: left;
  margin: -2px 10px 0px -17px;
  top: 2px;
  background: url("") #fff;
}
</style>
